<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.front.servlets.RegisterTwo"%>
<%@page import="com.blockchain.common.enums.TermType"%>
<%@page import="com.blockchain.front.servlets.Term"%>
<%@page import="com.blockchain.front.servlets.Send"%>
<%@page import="com.blockchain.front.servlets.LoginVerify"%>
<%@page import="com.blockchain.front.servlets.CheckNameExists"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<html>
<head>
<%
String str = languageDefine.getValue(request, "register_setTradePassword");
String _TITLE_ = str+" - "+configureProvider.getProperty(SystemVariable.SITE_NAME);
String _DESCRIPTION_ = "综合数字货币交易平台，拥有专业的团队、先进的技术和资深的行业经验，致力于成为中国最稳定、最安全、最专业、最全面的数字货币、数字资产、虚拟货币综合交易平台。";
%>
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<meta name="description" content="<%=_DESCRIPTION_ %>">
<%@include file="/WEB-INF/include/style.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
</head>
<body >
<%@include file="/WEB-INF/include/header.jsp"%>
<div class="autobox" id="reg-step1">
   <div class="login_step">
        <ul class="order clear">
            <li class="orange step-end"><i class="order_1_1"></i><%=languageDefine.getValue(request, "register_userRegister")%>
                <div class="order_line"></div></li>
            <li class="orange"><i class="order_2_1"></i><%=languageDefine.getValue(request, "register_setTradePassword")%>
                <div class="order_line"></div></li>
            <li><i class="order_3"></i><%=languageDefine.getValue(request, "register_verified")%>
                <div class="order_line"></div></li>
            <li><i class="order_4"></i><%=languageDefine.getValue(request, "register_success")%></li>
        </ul>
    </div>
    <%String errorMessage = controller.getPrompt(request,response,PromptLevel.ERROR);%>
    <form action="<%=controller.getURI(request, RegisterTwo.class)%>" method="post" onsubmit="return onSubmit()">
    <div class="reg_box">
        <div class="reg_wrap pt47">
        <%if(!StringHelper.isEmpty(errorMessage)){%>
        <div class="com_warning"><%StringHelper.filterHTML(out, null==errorMessage?"":(errorMessage.indexOf("err_")!=-1?languageDefine.getValue(request, errorMessage):errorMessage));%></div>
        <%}else{%>
          <div class="reg_warning"><span><%=languageDefine.getValue(request, "register_forSafe")%></span></div>
         <%}%>  
            <div class="reg_input_box reg-fb">
                <div class="reg_title"><%=languageDefine.getValue(request, "register_tradePassword")%>：</div>
                <input type="password" id="paypassword" name="paypassword">
                <div id="pwtrade-msg" style="display: none;" class="form_explain" data-explain='<%=languageDefine.getValue(request, "register_cannotSame")%><em></em>'><%=languageDefine.getValue(request, "register_cannotSame")%><em></em></div>
            </div>
            <div class="reg_input_box reg-fb">
                <div class="reg_title"><%=languageDefine.getValue(request, "register_repeatTradePassword")%>：</div>
                <input type="password" id="repaypassword" name="repaypassword">
                <div id="repwtrade-msg" class="form_explain" style="display: none;" data-explain='<%=languageDefine.getValue(request, "register_needConsistance")%><em></em>'><%=languageDefine.getValue(request, "register_needConsistance")%><em></em></div>
            </div>
            <br>

            <div class="reg_button_box">
                <input type="submit" value='<%=languageDefine.getValue(request, "register_nextStep")%>' >
            </div>
        </div>
    </div>
    </form>
</div>
<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
<script type="text/javascript">
function onSubmit(){
    var paypassword=$("#paypassword").val();
    var repaypassword=$("#repaypassword").val();
    if(paypassword==""||paypassword==null){
        layer.tips('<%=languageDefine.getValue(request, "js_tradePassword")%>', '#paypassword', {tips: 3});
        return false;
    }
    if(repaypassword==""||repaypassword==null){
        layer.tips('<%=languageDefine.getValue(request, "js_enterConfirmPassword")%>', '#repaypassword', {tips: 3});
        return false;
    }
    if(paypassword!=repaypassword){
        layer.tips('<%=languageDefine.getValue(request, "js_confirmPasswordError")%>', '#repaypassword', {tips: 3});
        return false;
    }
    if (paypassword.length<6 || paypassword.length >16) {
		layer.tips('<%=languageDefine.getValue(request, "js_passwordReg")%>', '#paypassword', {tips:3});
		return false;
    }
    return true;
}
</script>
</body>
</html>	
	
